package com.askyjt.videosearch.service;

import com.askyjt.videosearch.entity.Video;
import com.askyjt.videosearch.vo.VideoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yangjintao
 * @since 2020-11-02
 */
public interface VideoService extends IService<Video> {
    /**
     * 保存上传的视频到数据库和milvus中。
     * @param video
     * @return
     */
    Boolean saveVideo(Video video);

    /**
     * 根据图片搜索视频
     * @param path
     * @return
     */
    List<VideoVo> searchVideo(String path);

    /**
     * 通过id批量删除视频
     * @param ids
     * @return
     */
    Boolean deleteVideoById(List<Long> ids) throws InterruptedException;
}
